package com.ctshk.rpc.payment.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 退款记录
 * </p>
 *
 * @author hef
 * @since 2021-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_refund_record")
@ApiModel(value="RefundRecord对象", description="退款记录")
public class RefundRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单号")
    private String orderNumber;

    @ApiModelProperty(value = "退款单号")
    private String refundNumber;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmt;

    @ApiModelProperty(value = "货币")
    private String currency;

    /**
     * @enum RefundStatus
     */
    @ApiModelProperty(value = "退款状态:0-处理中,1-退款成功,2-退款失败")
    private Integer refundStatus;

    @ApiModelProperty(value = "退款时间")
    private LocalDateTime refundTime;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
